package com.woniu.apartment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.woniu.apartment.mapper.ApartSecurityRefMapper;
import com.woniu.apartment.domain.ApartSecurityRef;
import com.woniu.apartment.service.IApartSecurityRefService;

/**
 * 公寓和安保对应Service业务层处理
 * 
 * @author yy
 * @date 2023-04-03
 */
@Service
public class ApartSecurityRefServiceImpl implements IApartSecurityRefService 
{
    @Autowired
    private ApartSecurityRefMapper apartSecurityRefMapper;

    /**
     * 查询公寓和安保对应
     * 
     * @param id 公寓和安保对应主键
     * @return 公寓和安保对应
     */
    @Override
    public ApartSecurityRef selectApartSecurityRefById(Long id)
    {
        return apartSecurityRefMapper.selectApartSecurityRefById(id);
    }

    /**
     * 查询公寓和安保对应列表
     * 
     * @param apartSecurityRef 公寓和安保对应
     * @return 公寓和安保对应
     */
    @Override
    public List<ApartSecurityRef> selectApartSecurityRefList(ApartSecurityRef apartSecurityRef)
    {
        return apartSecurityRefMapper.selectApartSecurityRefList(apartSecurityRef);
    }

    /**
     * 新增公寓和安保对应
     * 
     * @param apartSecurityRef 公寓和安保对应
     * @return 结果
     */
    @Override
    public int insertApartSecurityRef(ApartSecurityRef apartSecurityRef)
    {
        return apartSecurityRefMapper.insertApartSecurityRef(apartSecurityRef);
    }

    /**
     * 修改公寓和安保对应
     * 
     * @param apartSecurityRef 公寓和安保对应
     * @return 结果
     */
    @Override
    public int updateApartSecurityRef(ApartSecurityRef apartSecurityRef)
    {
        return apartSecurityRefMapper.updateApartSecurityRef(apartSecurityRef);
    }

    /**
     * 批量删除公寓和安保对应
     * 
     * @param ids 需要删除的公寓和安保对应主键
     * @return 结果
     */
    @Override
    public int deleteApartSecurityRefByIds(Long[] ids)
    {
        return apartSecurityRefMapper.deleteApartSecurityRefByIds(ids);
    }

    /**
     * 删除公寓和安保对应信息
     * 
     * @param id 公寓和安保对应主键
     * @return 结果
     */
    @Override
    public int deleteApartSecurityRefById(Long id)
    {
        return apartSecurityRefMapper.deleteApartSecurityRefById(id);
    }
}
